package org.zhou.pojo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class Book {
    private Integer id;
    @NotEmpty
    @Pattern(regexp = "^\\S{1,20}$")
    private String bookname;

    private int type;

    private String author;

    private Integer num;
    private String address;
    @NotEmpty
    @Pattern(regexp = "^\\S{1,10}$")
    private String idNumber;

}
